[improvement](be) Avoid eager formatting in hot paths - #66366
Conversation
### What problem does this PR solve? Issue Number: None Related PR: apache#66363 Problem Summary: Successful delete bitmap cache checks repeatedly traversed both bitmaps to construct an unused error message, and nullable LARGEINT Arrow serialization formatted values before checking whether rows were null. Reuse the computed bitmap cardinalities, construct the mismatch message only on failure, and format LARGEINT values only for non-null rows. ### Release note None ### Check List (For Author) - Test: No need to test (control flow-only optimization; clang-format and git diff checks completed) - Behavior changed: No - Does this need documentation: No
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 29190 ms |
TPC-DS: Total hot run time: 169431 ms |
ClickBench: Total hot run time: 23.91 s |
|
/review |
| "delete bitmap cache check failed, cur_cardinality={}, cached_cardinality={}" | ||
| "txn_id={}, tablet_id={}", | ||
| expected_delete_bitmap->cardinality(), cached_delete_bitmap->cardinality(), txn_id, | ||
| tablet_id()); |
There was a problem hiding this comment.
错误字符串中 cached_cardinality={} 与 txn_id={} 之间缺少逗号或空格,最终会输出成
cached_cardinality=10txn_id 这个问题顺手修了吧, `然后补一个arrow largetint的nullable的处理用例 现在ut里面是非null的
|
/review |
|
Codex automated review failed and did not complete. Error: All Codex review accounts are usage-limited; earliest retry is 2026-08-08T03:32:00Z. Please trigger /review again after that time. |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
Codex automated review failed and did not complete. Error: All Codex review accounts are usage-limited; earliest retry is 2026-08-08T03:32:00Z. Please trigger /review again after that time. |
What problem does this PR solve?
Related PR: #66363
Problem Summary: Successful delete bitmap cache checks repeatedly traversed both bitmaps to construct an unused error message, and nullable LARGEINT Arrow serialization formatted values before checking whether rows were null. Reuse the computed bitmap cardinalities, construct the mismatch message only on failure, and format LARGEINT values only for non-null rows.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)